package com.project.bean;
/**信息广场实体类*/
public class SquareInfoBean {
    /** id */
    private int id;
    /**标题*/
    private String infoTitle;
    /**作者*/
    private String infoWrite;
    /**内容*/
    private String infoContent;
    /**所在城市*/
    private String infoCity;
    /**图片*/
    private String infoImg;
    /**分类*/
    private String infoType;
    /**电话*/
    private String infoTel;
    /**所属用户*/
    private UserBean user;

    public SquareInfoBean() {
    }

    public SquareInfoBean(String infoTitle, String infoWrite, String infoContent, String infoCity, String infoImg, String infoType, String infoTel, int userId) {
        this.infoTitle = infoTitle;
        this.infoWrite = infoWrite;
        this.infoContent = infoContent;
        this.infoCity = infoCity;
        this.infoImg = infoImg;
        this.infoType = infoType;
        this.infoTel = infoTel;
        this.user = new UserBean();
        this.user.setId(userId);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getInfoTitle() {
        return infoTitle;
    }

    public void setInfoTitle(String infoTitle) {
        this.infoTitle = infoTitle;
    }

    public String getInfoWrite() {
        return infoWrite;
    }

    public void setInfoWrite(String infoWrite) {
        this.infoWrite = infoWrite;
    }

    public String getInfoContent() {
        return infoContent;
    }

    public void setInfoContent(String infoContent) {
        this.infoContent = infoContent;
    }

    public String getInfoCity() {
        return infoCity;
    }

    public void setInfoCity(String infoCity) {
        this.infoCity = infoCity;
    }

    public String getInfoImg() {
        return infoImg;
    }

    public void setInfoImg(String infoImg) {
        this.infoImg = infoImg;
    }

    public String getInfoType() {
        return infoType;
    }

    public void setInfoType(String infoType) {
        this.infoType = infoType;
    }

    public String getInfoTel() {
        return infoTel;
    }

    public void setInfoTel(String infoTel) {
        this.infoTel = infoTel;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }
}
